package client;

public class Message {

	/**
	 * @param args
	 */
	private String message;
	private int llc;
	private float identite;
	private String envoyeur;
	private int nbAck;
	
	public void diminuerNbAck(){
		--this.nbAck;
	}
	public int getNbAck() {
		return nbAck;
	}

	public void setNbAck(int nbAck) {
		this.nbAck = nbAck;
	}

	public void setIdentite(float identite) {
		this.identite = identite;
	}

	public Message (String envoyeur, int llc,String msg, int port,int nbAck){
		this.message = msg;
		this.llc = llc;
		this.envoyeur = envoyeur;
		this.nbAck = nbAck;
		
		String id = llc+"."+port;
		this.identite = Float.parseFloat(id);
	}
	
	public String getEnvoyeur() {
		return envoyeur;
	}
	public void setEnvoyeur(String envoyeur) {
		this.envoyeur = envoyeur;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public int getLlc() {
		return llc;
	}
	public void setLlc(int llc) {
		this.llc = llc;
	}
	public float getIdentite() {
		return identite;
	}
	public void setIdentite(int identite) {
		this.identite = identite;
	}
	

	
	

}
